package com.mxchip.livestarmobile.mobile.db.entity

import androidx.room.ColumnInfo
import androidx.room.Entity
import androidx.room.Index
import androidx.room.PrimaryKey
import java.io.Serializable
import java.util.*

@Entity(indices = [Index( "user_id", unique = true)])
data class Account(
        @PrimaryKey(autoGenerate = true)
        var uid: Long = 0,

        @ColumnInfo(name = "t_created")
        var t_created: Date? = null,

        @ColumnInfo(name = "user_id")
        var userId: String? = null,

        @ColumnInfo(name = "phone_number")
        var phoneNumber: String? = null,

        @ColumnInfo(name = "nickname")
        var nickname: String? = null,

        @ColumnInfo(name = "auth_token")
        var authToken: String? = null,

        @ColumnInfo(name = "room_id")
        var roomId: String? = null,

        @ColumnInfo(name = "number")
        var number: String? = null

) : Serializable